﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace YugiCard
{
	/// <summary>
	/// Interaction logic for CardControl.xaml
	/// </summary>
    public partial class CardControl : UserControl, INotifyPropertyChanged
	{
		public CardControl()
		{
			this.InitializeComponent();
		}
        public int speed;
        public string TextTitle
        {
            get
            {
                return this.Title.Text;
            }
            set
            {
                this.Title.Text = value;
                Change("TextTitle");
            }
        }
        public string TextDetail
        {
            get
            {
                return this.Detail.Text;
            }
            set
            {
                this.Detail.Text = value;
                Change("TextDetail");
            }

        }
        private string attack;
        public string Attack
        {
            get
            {
                return this.attack;
            }
            set
            {

                this.attack = value;
                
               // Change("Attack");
            }
        }
        private string def;
        public string Defend
        {
            get
            {
                return this.def;
            }
            set
            {
                this.def = value;
               // this.Def.Text = def ;
                Change("Defend");
            }
        }
        public string script;
        public string Script
        {
            get
            {
                return script;
            }
            set
            {
                script = value;
                Change("Script");
            }
        }
        public int Star;
        private void Change(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(name));
        }
        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion


	}
}